package com.study.thread.juc.concurrent;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

public class HashMapOverFlow {
    private static final HashMap<String, String> over = new HashMap<>(2);

    public static void main(String[] args) throws InterruptedException {

        Thread t1 = new Thread(() -> {
            for (int i = 0; i < 30000; i++) {
                new Thread(() -> {
                    over.put(UUID.randomUUID().toString(), "");
                }, "fff" + i).start();
            }
        }, "fff");
        t1.start();
        t1.join();

    }
}
